package com.wen.decoratorPattern;

/**
 * 装饰类模式具体实现类
 */
public class ConcreteDecorate extends Decorate {


    public ConcreteDecorate(Component component) {
        super(component);
    }

    public void decorateSomething() {
        System.out.println("已经进行了装饰");
    }

    @Override
    public void operate() {
        System.out.println("已经进行了装饰");
        //调用父类方法
        super.operate();
    }
}
